//Component Object
Component({
  properties: {
    myProperty:{
      type:String,
      value:'',
      observer: function(){}
    },

  },
  data: {
    name:'custom-li'
  },
  relations:{
    '../custom-ul/index':{
      type:'parent',
      linked:function(target){
        // 每次被插入到custom-ul时执行，target是custom-ul节点实例对象，触发在attached生命周期之后
        console.log('li linked target:',target)
      },
      linkChanged: function(target) {
        // 每次被移动后执行，target是custom-ul节点实例对象，触发在moved生命周期之后
        console.log('li linkChanged target:',target)
      },
      unlinked: function(target) {
        // 每次被移除时执行，target是custom-ul节点实例对象，触发在detached生命周期之后
        console.log('li unlinked target:',target)
      }
    }

  },
  methods: {
    
  },
  created: function(){
    console.log('li created')
  },
  attached: function(){
    console.log('li attached')
  },
  ready: function(){

  },
  moved: function(){

  },
  detached: function(){

  },
});